Python integer validation

30

how to create an integer validate python -

try:
    value=int(input("Type a number:"))
except ValueError:
    print("This is not a whole number.")

Comments

Submit
0 Comments